﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="valuablesborrow.aspx.cs"
    Inherits="LabMS.Web.Equipment.Valuables.valuablesborrow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>贵重仪器领用</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/calendar5.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
        var c = new Calendar("c");
        document.write(c);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        贵重仪器领用</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="lbBorrow" CssClass="button" runat="server" Text="领用" OnClick="lbBorrow_Click" />
            </p>
            
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            编号:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <input onclick="OpenEditWin2('../../CommonPage/consumselectlist.aspx?location=@ALL@&type=guizhongyiqi',500,400,'TextBox1', 'TextBox2')"
                            type="button" class="button" value="..." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                            ErrorMessage="编号名称不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            名称:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            领用人:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <input onclick="OpenEditWin1('../../CommonPage/TeacherList.aspx',500,400,'TextBox3')"
                            type="button" class="button" value="..." /><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                runat="server" ControlToValidate="TextBox3" ErrorMessage="领用人不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            借出时间:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox10"
                            ErrorMessage="借出时间不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            归还时间:</label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            借用时状态:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            归还时状态:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            备注:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox8" runat="server" Width="300" Height="100" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            操作员:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>

        <script type="text/javascript">
        function OpenEditWin(frmWin, width, height,id1,id2) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(id1).value = ret[0];
                document.getElementById(id2).value = ret[1];
            }
        }

        function OpenEditWin1(frmWin, width, height, id1) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(id1).value = ret[1];
            }
        }
        function OpenEditWin2(frmWin, width, height, obj1, obj2) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(obj1).value = ret[0];
                document.getElementById(obj2).value = ret[1];
                $.post("GetStatus.ashx", { Code: document.getElementById(obj1).value },
                        function(data, textStatus) {
                            $("#tbStatus").val(data.result);
                        },
                        "json");
            }
        } 

        </script>

        <asp:Label ID="Err" runat="server"></asp:Label>
    </form>
</body>
</html>
